/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License"){return 0;}
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef OHOS_MEDIA_BUSINESS_CODE_H
#define OHOS_MEDIA_BUSINESS_CODE_H

namespace OHOS::Media {
//  一个北向接口对应一个Code，在最后追加，禁止插入
//  MEDIA_BUSINESS_CODE    通用对外接口 [0, 9999)
//  ASSETS_BUSINESS_CODE   资产相关接口 [10000, 19999)
//  ALBUMS_BUSINESS_CODE   相册相关接口 [20000, 29999)
//  MEDIA_CLOUD_CODE       端云相关接口 [30000, 39999)
//  INNER_BUSINESS_CODE    InnerApi    [50000, 59999)
enum class MediaLibraryBusinessCode : uint32_t {
    MEDIA_BUSINESS_CODE_START = 0,
    REMOVE_FORM_INFO,
    REMOVE_GALLERY_FORM_INFO,
    SAVE_FORM_INFO,
    SAVE_GALLERY_FORM_INFO,
    UPDATE_GALLERY_FORM_INFO = 5,
    SUBMIT_CLOUD_ENHANCEMENT_TASKS,
    PRIORITIZE_CLOUD_ENHANCEMENT_TASK,
    CANCEL_CLOUD_ENHANCEMENT_TASKS,
    CANCEL_ALL_CLOUD_ENHANCEMENT_TASKS,
    PAH_OPEN = 10,
    PAH_START_THUMBNAIL_CREATION_TASK,
    PAH_STOP_THUMBNAIL_CREATION_TASK,
    GET_CLOUD_ENHANCEMENT_PAIR,
    QUERY_CLOUD_ENHANCEMENT_TASK_STATE,
    SYNC_CLOUD_ENHANCEMENT_TASK_STATUS = 15,
    GET_ANALYSIS_PROCESS,
    NOTIFY_FOR_RECHECK,
    MEDIA_BUSINESS_CODE_END = 9999,
    ASSETS_BUSINESS_CODE_START = 10000,
    CLONE_ASSET,
    REVERT_TO_ORIGINAL,
    COMMIT_EDITED_ASSET,
    PAH_PUBLIC_CREATE_ASSET,
    PAH_SYSTEM_CREATE_ASSET = 10005,
    PAH_PUBLIC_CREATE_ASSET_FOR_APP,
    PAH_SYSTEM_CREATE_ASSET_FOR_APP,
    PAH_SYSTEM_CREATE_ASSET_FOR_APP_WITH_MODE,
    PAH_SYSTEM_CREATE_ASSET_FOR_APP_WITH_ALBUM,
    PAH_PUBLIC_SET_TITLE = 10010,
    PAH_SYSTEM_SET_PENDING,
    PAH_SYSTEM_SET_FAVORITE,
    PAH_SYSTEM_SET_USER_COMMENT,
    PAH_SYSTEM_BATCH_SET_HIDDEN,
    PAH_SYSTEM_BATCH_SET_FAVORITE = 10015,
    PAH_SYSTEM_BATCH_SET_RECENT_SHOW,
    PAH_SYSTEM_BATCH_SET_USER_COMMENT,
    PAH_GET_ASSET_ANALYSIS_DATA,
    PAH_SYS_TRASH_PHOTOS,
    PAH_TRASH_PHOTOS = 10020,
    PAH_DELETE_PHOTOS,
    DELETE_PHOTOS_COMPLETED,
    START_DOWNLOAD_CLOUDMEDIA,
    PAUSE_DOWNLOAD_CLOUDMEDIA,
    CANCEL_DOWNLOAD_CLOUDMEDIA = 10025,
    RETAIN_CLOUDMEDIA_ASSET,
    PAH_GRANT_PHOTO_URI_PERMISSION,
    PAH_GRANT_PHOTO_URIS_PERMISSION,
    PAH_CANCEL_PHOTO_URI_PERMISSION,
    ASSET_CHANGE_SET_FAVORITE = 10030,
    ASSET_CHANGE_SET_HIDDEN,
    ASSET_CHANGE_SET_USER_COMMENT,
    ASSET_CHANGE_SET_LOCATION,
    ASSET_CHANGE_SET_TITLE,
    ASSET_CHANGE_SET_EDIT_DATA = 10035,
    ASSET_CHANGE_SUBMIT_CACHE,
    ASSET_CHANGE_CREATE_ASSET,
    ASSET_CHANGE_ADD_IMAGE,
    SET_CAMERA_SHOT_KEY,
    SAVE_CAMERA_PHOTO = 10040,
    DISCARD_CAMERA_PHOTO,
    SET_EFFECT_MODE,
    SET_ORIENTATION,
    SET_VIDEO_ENHANCEMENT_ATTR,
    SET_SUPPORTED_WATERMARK_TYPE = 10045,
    PAH_GET_ASSETS,
    GET_BURST_ASSETS,
    FIND_ALL_DUPLICATE_ASSETS,
    FIND_DUPLICATE_ASSETS_TO_DELETE,
    GET_INDEX_CONSTRUCT_PROGRESS = 10050,
    QUERY_IS_EDITED,
    QUERY_REQUEST_EDIT_DATA,
    QUERY_GET_EDIT_DATA,
    QUERY_GET_CLOUDMEDIA_ASSET_STATUS,
    QUERY_START_ASSET_ANALYSIS = 10055,
    PAH_REQUEST_CONTENT,
    QUERY_PHOTO_STATUS,
    LOG_MOVING_PHOTO,
    CONVERT_FORMAT,
    SET_HAS_APPLINK = 10060,
    SET_APPLINK,
    CREATE_TMP_DUPLICATE,
    HEIF_TRANSCODING_CHECK,
    ASSET_CHANGE_SET_COMPOSITE_DISPLAY_MODE,
    CAMERA_INNER_ADD_IMAGE,
    ASSETS_BUSINESS_CODE_END = 19999,
    ALBUMS_BUSINESS_CODE_START = 20000,
    DELETE_HIGH_LIGHT_ALBUMS,
    PAH_SYSTEM_CREATE_ALBUM,
    PAH_DELETE_PHOTO_ALBUMS,
    ALBUM_SYS_GET_ASSETS,
    ALBUM_GET_ASSETS = 20005,
    CHANGE_REQUEST_SET_ALBUM_NAME,
    CHANGE_REQUEST_SET_COVER_URI,
    CHANGE_REQUEST_SET_IS_ME,
    CHANGE_REQUEST_SET_DISPLAY_LEVEL,
    CHANGE_REQUEST_DISMISS = 20010,
    CHANGE_REQUEST_RESET_COVER_URI,
    SET_HIGH_LIGHT_USER_ACTION_DATA,
    SET_SUBTITLE,
    CHANGE_REQUEST_ADD_ASSETS,
    CHANGE_REQUEST_REMOVE_ASSETS = 20015,
    CHANGE_REQUEST_MOVE_ASSETS,
    CHANGE_REQUEST_RECOVER_ASSETS,
    CHANGE_REQUEST_DELETE_ASSETS,
    CHANGE_REQUEST_DISMISS_ASSETS,
    CHANGE_REQUEST_MERGE_ALBUM = 20020,
    CHANGE_REQUEST_PLACE_BEFORE,
    CHANGE_REQUEST_SET_ORDER_POSITION,
    PAH_COMMIT_MODIFY,
    PAH_ADD_ASSETS,
    PAH_REMOVE_ASSETS = 20025,
    PAH_RECOVER_ASSETS,
    PAH_SET_COVER_URI,
    PAH_QUERY_PHOTO_ALBUMS,
    PAH_QUERY_HIDDEN_ALBUMS,
    PAH_GET_ORDER_POSITION = 20030,
    PAH_QUERY_GET_ALBUMS_BY_IDS,
    GET_FACE_ID,
    GET_PHOTO_INDEX,
    GET_HIGHLIGHT_ALBUM_INFO,
    PAH_GET_PHOTO_ALBUMS = 20035,
    PAH_GET_PHOTO_ALBUM_ORDER,
    PAH_SET_PHOTO_ALBUM_ORDER,
    CHANGE_REQUEST_SET_RELATIONSHIP,
    PAH_GET_RELATIONSHIP,
    CHANGE_REQUEST_SET_HIGHLIGHT_ATTRIBUTE,
    ALBUMS_BUSINESS_CODE_END = 29999,
    MEDIA_CLOUD_CODE_START = 30000,
    MEDIA_CLOUD_CODE_END = 39999,
    INNER_BUSINESS_CODE_START = 50000,
    INNER_ADD_ASSET_VISIT_COUNT,
    INNER_QUERY_PHOTO_STATUS,
    INNER_CREATE_ASSET,
    INNER_GET_RESULT_SET_FROM_DB,
    INNER_GET_RESULT_SET_FROM_DB_EXTEND = 50005,
    INNER_GET_RESULT_SET_FROM_PHOTOS_EXTEND,
    INNER_GET_MOVING_PHOTO_DATE_MODIFIED,
    INNER_GET_FILEPATH_FROM_URI,
    INNER_GET_URI_FROM_FILEPATH,
    INNER_CANCEL_PHOTO_URI_PERMISSION = 50010,
    INNER_GRANT_PHOTO_URI_PERMISSION,
    INNER_CLOSE_ASSET,
    INNER_CHECK_PHOTO_URI_PERMISSION,
    INNER_CHECK_AUDIO_URI_PERMISSION,
    INNER_GET_URIS_BY_OLD_URIS = 50015,
    INNER_CUSTOM_RESTORE,
    INNER_CUSTOM_RESTORE_CANCEL,
    INNER_GET_RESULT_SET_FROM_PHOTOS,
    INNER_PAH_QUERY_GET_ALBUMS_BY_IDS,
    INNER_PAH_QUERY_PHOTO_ALBUMS = 50020,
    INNER_RETAIN_CLOUDMEDIA_ASSET,
    INNER_BUSINESS_CODE_END = 59999,
};
}  // namespace OHOS::Media
#endif  // OHOS_MEDIA_BUSINESS_CODE_H